/*
 *  Copyright (C) 2013  Venkat Raghavan G
 *  
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 2 of the License, or
 *  (at your option) any later version.
 *  
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *  
 *  
 */

package edu.uic.cs.analyze.text.model;

public class Span {

	int beginIndex;
	int endIndex;
	String sourceString;
	String spanString;

	public Span(int beginIndex, int endIndex, String sourceString,
			String spanString) {
		super();
		this.beginIndex = beginIndex;
		this.endIndex = endIndex;
		this.sourceString = sourceString;
		this.spanString = spanString;
	}

	public int getBeginIndex() {
		return beginIndex;
	}

	public void setBeginIndex(int beginIndex) {
		this.beginIndex = beginIndex;
	}

	public int getEndIndex() {
		return endIndex;
	}

	public void setEndIndex(int endIndex) {
		this.endIndex = endIndex;
	}

	public String getSourceString() {
		return sourceString;
	}

	public void setSourceString(String sourceString) {
		this.sourceString = sourceString;
	}

	public String getSpanString() {
		return spanString;
	}

	public void setSpanString(String spanString) {
		this.spanString = spanString;
	}

	@Override
	public String toString() {
		String str = "";
		str += beginIndex + "::" + endIndex + "::" + sourceString;
		return str;
	}

}
